package cn.exrick.xboot.enterpriseUser.controllerImp

import cn.exrick.xboot.base.dto.ExamConfirmDto
import cn.exrick.xboot.base.service.IExamConfirmCheckService
import cn.exrick.xboot.base.vo.EmployeeOfficialExamVo
import cn.exrick.xboot.core.common.vo.PageVo
import cn.exrick.xboot.core.common.vo.Result
import cn.exrick.xboot.enterpriseUser.controller.IEnterpriseUserController
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RestController

@RestController
open class IExamConfirmCheck : IEnterpriseUserController.IExamConfirmCheck {

    @Autowired
    private lateinit var iExamConfirmCheckService: IExamConfirmCheckService


    override fun createExamConfirmCheck(examConfirmDto: ExamConfirmDto): Result<Any?>? {

        return iExamConfirmCheckService.createExamConfirmCheck(examConfirmDto)
    }

    override fun getExamConfirmBySupervisionId(pageVo: PageVo, confirmMessage: Boolean?): Result<MutableMap<String, Any?>>? {

        return iExamConfirmCheckService.getExamConfirmBySupervisionId(pageVo, confirmMessage)
    }

    override fun getExamConfirmDetail(id: String): Result<EmployeeOfficialExamVo?>? {

        return iExamConfirmCheckService.getExamConfirmDetail(id)
    }

    override fun checkExam(id: String?): Result<Any?>? {

        return iExamConfirmCheckService.checkExam(id)
    }
}